package com.xtsoft.platform.task.domain;

import jakarta.annotation.PostConstruct;

import lombok.Data;

@Data
/**
 * 
 * @ClassName:  CommonTask   
 * @Description: 通用任务类，配合任务调度框架，后代类可重载initialize，执行初始化任务，比如给私有属性赋值
 * @author: defencez
 * @date:   2018年10月24日 上午11:06:17
 */
public class CommonTask implements Runnable{

	private String taskId;
	
	private String taskName;
	
	private String cron;
	
	public CommonTask(){
		
	}
	
	public CommonTask(String taskId,String taskName,String cron) {
		this.taskId = taskId;
		this.taskName = taskName;
		this.cron = cron;
	}

	@PostConstruct
	public void initialize() {
		
	}
	
	@Override
	public  void run() {
		// TODO Auto-generated method stub
		
	}
	
}
